package com.centaline.androidsalesblog.api.newest;

import com.centaline.androidsalesblog.api.NewEstApi;
import com.centaline.androidsalesblog.model.responseobject.NewPropImgRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 新盘图片
 * Created by guilin on 16/2/24.
 */
public class NewPropImgApi extends NewEstApi<NewPropImgRo> {

    private final String appNo;
    private final String appValue;
    private final int queryType;

    public NewPropImgApi(Class<?> tag, Class<NewPropImgRo> aClass, String appNo, String appValue,
                         IResponseListener<NewPropImgRo> iResponseListener) {
        this(tag, aClass, appNo, appValue, 0, iResponseListener);
    }

    public NewPropImgApi(Class<?> tag, Class<NewPropImgRo> aClass, String appNo, String appValue, int queryType,
                         IResponseListener<NewPropImgRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
        this.appNo = appNo;
        this.appValue = appValue;
        this.queryType = queryType;
    }

    @Override
    protected void setParams() {
        putStringParams("AppNo", appNo);
        putStringParams("AppValue", appValue);
        putParams("queryType", queryType);
    }

    @Override
    protected String getPath() {
        return "NewPropImgRequest";
    }
}
